<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>css瀑布流</title>
  <style>
    *{
      margin: 0;
      padding: 0;
    }
    #container{
      display: flex;
      flex-direction: column;
      height: 3900px;
      width: 98vw;
      flex-wrap: wrap;
      gap: 5px;
      padding: 5px;
      overflow: hidden;
  }
  img{
    width: 25%;
  }
  /* img:nth-child(4n+1){
    order: 1;
  }
  img:nth-child(4n+2){
    order: 2;
  }
  img:nth-child(4n+3){
    order: 3;
  }
  img:nth-child(4n){
    order: 4;
  } */

  
  </style>
</head>
<body>
  <div id="container">
    <img src="./imgage/001.jpg" alt="">
    <img src="./imgage/002.jpg" alt="">
    <img src="./imgage/003.jpg" alt="">
    <img src="./imgage/004.jpg" alt="">
    <img src="./imgage/005.jpg" alt="">
    <img src="./imgage/006.jpg" alt="">
    <img src="./imgage/007.jpg" alt="">
    <img src="./imgage/008.jpg" alt="">
    <img src="./imgage/009.jpg" alt="">
    <img src="./imgage/010.jpg" alt="">
    <img src="./imgage/011.jpg" alt="">
    <img src="./imgage/012.jpg" alt="">
    <img src="./imgage/013.jpg" alt="">
    <img src="./imgage/014.jpg" alt="">
    <img src="./imgage/015.jpg" alt="">
    <img src="./imgage/016.jpg" alt="">
    <img src="./imgage/017.jpg" alt="">
    <img src="./imgage/018.jpg" alt="">
    <img src="./imgage/019.jpg" alt="">
    <img src="./imgage/020.jpg" alt="">
    <img src="./imgage/021.jpg" alt="">
    <img src="./imgage/022.jpg" alt="">
    <img src="./imgage/023.jpg" alt="">
    <img src="./imgage/024.jpg" alt="">
    <img src="./imgage/025.jpg" alt="">
    <img src="./imgage/026.jpg" alt="">
    <img src="./imgage/027.jpg" alt="">
  </div>
  
</body>
</html>